package com.fire.user.model;


import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author MIT123
 * @since 2018-04-16
 */
@TableName("t_mit_user")
public class User extends Model<User>{



	private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "userid", type = IdType.AUTO)
    private Integer userid;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 更新时间
     */
    private Date updatetime;
    /**
     * 用户名称
     */
    private String aliasname;
    /**
     * 渠道id
     */
    private Integer channelid;
    /**
     * 渠道名称
     */
    private String channelname;
    /**
     * 资源类型(1:渠道;2:活动;3:营销活动;4:订单;5:admin平台)
     */
    private Integer resourcetype;
    /**
     * 资源id(渠道号,活动号,营销活动号,订单号,操作号)
     */
    private String resourceid;
    /**
     * 资源名称(渠道名称,活动号,营销活动号,订单号,操作人员名称)
     */
    private String resourcename;
    /**
     * 密码
     */
    private String passwd;
    /**
     * 电话
     */
    private String phone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 城市
     */
    private String city;
    /**
     * 性别(0:未知;1:男;2:女)
     */
    private Integer sex;
    /**
     * 微信号
     */
    private String wxid;
    /**
     * 头像
     */
    private String avatar;

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getAliasname() {
        return aliasname;
    }

    public void setAliasname(String aliasname) {
        this.aliasname = aliasname;
    }

    public Integer getChannelid() {
        return channelid;
    }

    public void setChannelid(Integer channelid) {
        this.channelid = channelid;
    }

    public String getChannelname() {
        return channelname;
    }

    public void setChannelname(String channelname) {
        this.channelname = channelname;
    }

    public Integer getResourcetype() {
        return resourcetype;
    }

    public void setResourcetype(Integer resourcetype) {
        this.resourcetype = resourcetype;
    }

    public String getResourceid() {
        return resourceid;
    }

    public void setResourceid(String resourceid) {
        this.resourceid = resourceid;
    }

    public String getResourcename() {
        return resourcename;
    }

    public void setResourcename(String resourcename) {
        this.resourcename = resourcename;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	@Override
    protected Serializable pkVal() {
        return this.userid;
    }

    @Override
    public String toString() {
        return "User{" +
        "userid=" + userid +
        ", createtime=" + createtime +
        ", updatetime=" + updatetime +
        ", aliasname=" + aliasname +
        ", channelid=" + channelid +
        ", channelname=" + channelname +
        ", resourcetype=" + resourcetype +
        ", resourceid=" + resourceid +
        ", resourcename=" + resourcename +
        ", passwd=" + passwd +
        ", phone=" + phone +
        ", email=" + email +
        ", city=" + city +
        ", sex=" + sex +
        ", wxid=" + wxid +
        ", avatar=" + avatar +
        "}";
    }
}
